home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / misc / Makefile.in < prev    next >
Makefile  |  1994-04-25  |  14KB  |  414 lines

  1. #
  2. #    RLaB Makefile.in
  3. #
  4.  
  5. # Don't modify
  6. DEFS =         @DEFS@
  7. SHELL =        /bin/sh
  8.  
  9. # The name of your C compiler
  10. CC =        @CC@
  11.  
  12. # The name of your Fortran compiler (ususally f2c)
  13. F2C =        @F2C@
  14.  
  15. # The flags to pass along to the C compiler
  16. CFLAGS =    -g
  17.  
  18. # The name of the parser generator, bison or byacc is preffered.
  19. YACC =         @YACC@
  20. YFLAGS =    -vdtl
  21.  
  22. # This must be flex, if flex is not available, leave it blank
  23. LEX =        @FLEX@
  24.  
  25. # This should be a "new" AWK (not necessary)
  26. AWK =         @AWK@
  27.  
  28. # This must be the name of a GNU tar program (not necessary)
  29. TAR =         gtar
  30.  
  31. # The name of an install program, either install(1), or cp(1)
  32. INSTALL =     @INSTALL@
  33. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  34.  
  35. # File name extension used for archive library files (DON'T include leading ".")
  36. A =         a
  37.  
  38. # File name extension used for object files (DON'T include leading ".")
  39. O =         o
  40.  
  41. # File name extension used for executable files (INCLUDING the dot, ".")
  42. EXE =
  43.  
  44. #
  45. # The place to look for libraries on the system
  46. #
  47. LLIBS = @LLIBS@
  48.  
  49. #
  50. # These are the libraries (all of them). The following are REQUIRED.
  51. # If configure does not find them then type in their location as well
  52. # as the library names in the following order. Example:
  53. # NALIBS = -L/usr/my/lib -lClapack -lCblas -lCfftpack -lCranlib
  54. #
  55. # -lClapack    LAPACK library
  56. # -lCblas    BLAS library
  57. # -lCfftpack    FFTPACK library (double precision version)
  58. # -lCranlib    RANLIB (random number generation)
  59. #
  60. NALIBS = @NALIBS@
  61.  
  62. #
  63. # The F2C libraries are REQUIRED
  64. # FLIBS = -L/usr/my/lib -lF77 -lI77
  65. #
  66. FLIBS = @FLIBS@
  67.  
  68. # The readline library (and -ltermcap) should be present if you have
  69. # defined HAVE_READLINE in config.h.
  70. # CMDLIBS = -lreadline -ltermcap
  71. #
  72. CMDLIBS = @CMDLIBS@
  73.  
  74. #
  75. # The PLPLOT library if you wish to use PLPLOT graphics.
  76. # Note that you need the double version of PLPLOT.
  77. # You should have HAVE_RLAB_PLPLOT defined in config.h to
  78. # make this work. 
  79. # PLIBS = -L/usr/local/plplot -lplplotdX -lX11
  80. # You may need some additional libs to support X11, for example:
  81. # PLIBS = -L/usr/local/plplot -lplplotdX -lX11 -lsocket -lnsl
  82. # is necessary for some SYSVr4 machines.
  83. #
  84. PLOT_PROG = @PLOT_PROG@
  85. PLIBS = @PLIBS@
  86. INC_DIR =  @PLIB_INC_DIR@
  87.  
  88. #
  89. # Put the whole mess together
  90. #
  91.  
  92. LIBS = $(LLIBS) $(NALIBS) $(FLIBS) $(CMDLIBS) $(PLIBS) -lm
  93.  
  94. #
  95. # Any special flags you might need for your system
  96. #
  97.  
  98. # Silicon Graphics machines need this for popen()
  99. # SPECIAL_FLAGS = -ansiposix
  100.  
  101. SPECIAL_FLAGS = -DASSERT_OFF
  102.  
  103. # prefix: The parent directory for the installation
  104. prefix =        /usr/local
  105. exec_prefix =   $(prefix)
  106. bindir =     $(exec_prefix)/bin
  107. libdir =        $(exec_prefix)/lib
  108. mandir =     $(exec_prefix)/man/man1
  109.  
  110. #
  111. # Don't change these without modifying the install actions
  112. #
  113.  
  114. TOPDIR =     $(libdir)/rlab
  115. RHELPDIR =    $(TOPDIR)/help
  116. RLIBDIR =    $(TOPDIR)/rlib
  117. DEFAULT_RC0 =    $(TOPDIR)/.rlab
  118. TOOLBOX =    $(TOPDIR)/toolbox
  119.  
  120. #
  121. # The default RLaB search path. This path is searched when
  122. # the `help' and `rfile' commands are used. Users can
  123. # override this with the environment variable RLAB_SEARCH_PATH.
  124. #
  125.  
  126. DEFAULT_SEARCH_PATH =    ".:$(TOOLBOX)"
  127.  
  128. #
  129. # The pager command that most users will want.
  130. # Usually this is pg, more, or less.
  131. #
  132.  
  133. DEFAULT_PAGER =    "@PAGER@"
  134.  
  135. #
  136. # Do not edit below this point until you have tried to make 
  137. #
  138.  
  139. DFLAGS =    -DDEFAULT_RC0=\"$(DEFAULT_RC0)\" \
  140.         -DDEFAULT_HELP=\"$(RHELPDIR)\" \
  141.         -DDEFAULT_LIB=\"$(RLIBDIR)\" \
  142.         -DDEFAULT_PAGER=\"$(DEFAULT_PAGER)\" \
  143.         -DDEFAULT_SEARCH_PATH=\"$(DEFAULT_SEARCH_PATH)\"
  144.  
  145. R_LIBS =    $(LIBS)
  146.  
  147. R_OBJ =        main.$(O) rlab.$(O) lex.yy.$(O) init.$(O) code.$(O) \
  148.         bltin1.$(O) bltin2.$(O) symbol.$(O) \
  149.         list.$(O) listnode.$(O) op.$(O) opapp.$(O) \
  150.         opmat.$(O) scalar.$(O) scop1.$(O) \
  151.         matrix.$(O) matop1.$(O) matop2.$(O) complex.$(O) \
  152.         function.$(O) r_string.$(O) trig.$(O) math_1.$(O) math_2.$(O) \
  153.         math_3.$(O) mathl.$(O) fi_1.$(O) fi_2.$(O) rel.$(O) mem.$(O) util.$(O) \
  154.         btree.$(O) diss.$(O) print.$(O) random.$(O) rfile.$(O) getline.$(O) \
  155.         mm.$(O) misc.$(O) r_plot.$(O) bio.$(O) odei.$(O)
  156.  
  157. R_SRC =        main.c rlab.y scan.l init.c code.c bltin1.c bltin2.c symbol.c \
  158.         list.c listnode.c op.c opapp.c \
  159.         opmat.c scalar.c scop1.c \
  160.         matrix.c matop1.c matop2.c complex.c \
  161.         function.c r_string.c trig.c math_1.c math_2.c \
  162.         math_3.c mathl.c fi_1.c fi_2.c rel.c mem.c util.c \
  163.         btree.c diss.c print.c random.c rfile.c getline.c \
  164.         mm.c misc.c r_plot.c bio.c odei.c
  165.  
  166. F_SRC =     lp.f bl.f ode.f
  167. F_OBJ =     lp.$(O) bl.$(O) ode.$(O)
  168.  
  169. ALLOCA =     @ALLOCA@
  170. GNU_OBJ =    getopt.$(O) getopt1.$(O) $(ALLOCA)
  171. GNU_SRC =     getopt.c getopt1.c alloca.c
  172.  
  173. SRC =         $(R_SRC) $(F_SRC) $(EXTRA_SRC) $(GNU_SRC) $(CMD_SRC)
  174. OBJ =         $(R_OBJ) $(F_OBJ) $(EXTRA_OBJ) $(GNU_OBJ) $(CMD_OBJ)
  175.  
  176. rlab$(EXE):    $(OBJ)
  177.         $(CC) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) $(OBJ) \
  178.         $(R_LIBS) $(PLOT_LIBS) -o rlab$(EXE)
  179.  
  180. rlabdb:        $(OBJ)
  181.         $(CC) $(CFLAGS) $(OBJ) \
  182.         -L/usr/local/lib -ldbmalloc $(R_LIBS) -o rlabdb 
  183.  
  184. Test:
  185.         time ./rlab -qrl ./test
  186.  
  187. Makefile:    Makefile.in config.status
  188.         $(SHELL) config.status
  189.  
  190. rlab-dist:    rlab
  191.         cp rlab.c rlab.c_dist
  192.         cp y.tab.h y.tabh_dist
  193.         cp lex.yy.c lex.yy_c_dist
  194.         cp Makefile Makefile.dist
  195.         cp lp.c lp.c_dist
  196.         cp bl.c bl.c_dist
  197.         cp ode.c ode.c_dist
  198.  
  199. # Subdirectories to install
  200. COPYDIR =    help rlib toolbox doc examples .rlab config.h
  201.  
  202. install:    rlab mkdir
  203.         -if [ `/bin/pwd` != `(cd ${TOPDIR}; /bin/pwd)` ] ; then \
  204.         tar cf - ${COPYDIR} [A-Z]* | (cd ${TOPDIR}; umask 022; tar xf - ) ;\
  205.         fi
  206.         if test "$(PLOT_PROG)" = "plplot" ; then\
  207.           cp misc/plplot.r ${TOPDIR}/rlib/plot.r;\
  208.         fi
  209.         if test "$(PLOT_PROG)" = "gnuplot" ; then\
  210.           cp misc/gnu_plot.r ${TOPDIR}/rlib/plot.r;\
  211.         fi
  212.         $(INSTALL_PROGRAM) rlab $(bindir)/rlab
  213.         $(INSTALL) doc/rlab.1 $(mandir)/rlab.1
  214.  
  215. mkdir:        
  216.         -mkdir $(TOPDIR) $(RLIBDIR) $(RHELPDIR) $(TOOLBOX)
  217.  
  218. FRC:        
  219.  
  220. tags:        $(SRC)
  221.         etags $(SRC) *.h
  222.  
  223. depend:        $(SRC)
  224.         rm -f make_depends; $(AWK) -f ./misc/depends.awk $(SRC) > make_depends
  225.  
  226. main.$(O):    main.c
  227.         $(CC) $(CFLAGS) $(DEFS) $(DFLAGS) -c main.c
  228.  
  229. lex.yy.$(O):    lex.yy.c config.h
  230.         $(CC) $(CFLAGS) $(DEFS) $(COMMAND_EDIT) -c lex.yy.c
  231.  
  232. lex.yy.c:    scan.l rlab.h code.h y.tab.h list.h util.h mem.h
  233.         if test -n "$(LEX)" ;\
  234.         then    $(LEX) -IL scan.l ;\
  235.             sed -f misc/r.sed lex.yy.c > lex.tmp;\
  236.             mv lex.tmp lex.yy.c;\
  237.         else    echo 'copying distribution files' ;\
  238.             cp lex.yy_c_dist lex.yy.c ;\
  239.         fi
  240.  
  241. rlab.$(O):    rlab.c
  242.         $(CC) $(CFLAGS) $(DEFS) $(YCFLAGS) -c rlab.c
  243.  
  244. y.tab.h rlab.c: rlab.y rlab.h mem.h list.h code.h symbol.h scalar.h \
  245.         function.h r_string.h util.h
  246.         echo 'expect 11 shift/reduce conflicts' ;\
  247.         $(YACC) $(YFLAGS) rlab.y ;\
  248.         mv y.tab.c rlab.c ;
  249.  
  250. mm.$(O):    mm.c
  251.         $(CC) -c -O $(DEFS) mm.c
  252.  
  253. r_plot.$(O):        
  254.         $(CC) -c $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  255.         $(INC_DIR) r_plot.c
  256.  
  257. clean:
  258.         rm -f $(OBJ)
  259.  
  260. fbackup:
  261.         ls -la [A-Z]* $(R_SRC) .rlab rlib help config* examples doc \
  262.         | $(AWK) -f ./misc/sum.awk
  263.         $(TAR) -czvf /dev/rdsk/f05ht [A-Z]* $(R_SRC) .rlab rlib help config* \
  264.         examples doc
  265.  
  266. blasdist:
  267.         $(TAR) cvf ../DIST/rblas.tar lib/blas-C/Makefile \
  268.         lib/blas-C/*.c lib/blas-C/f2c.h
  269.  
  270. lapdist:
  271.         $(TAR) cvf ../DIST/rlap-0.30.tar lib/lapack-C/Makefile \
  272.         lib/lapack-C/*.c lib/lapack-C/f2c.h
  273.  
  274. fftpdist:
  275.         $(TAR) cvf ../DIST/rfft-0.11.tar lib/fftpack-C/Makefile \
  276.         lib/fftpack-C/*.c lib/fftpack-C/f2c.h
  277.  
  278. ranlibdist:
  279.         $(TAR) cvf ../DIST/rnlib-0.11.tar lib/ranlib-C/Makefile \
  280.         lib/ranlib-C/*.c lib/ranlib-C/f2c.h
  281.  
  282. code_dump:
  283.         $(CC) -c $(CFLAGS) -DMALLOC_DUMP code.c
  284.  
  285. #
  286. # Define SUFFIXES for non-UNIX systems and brain damaged make
  287. # utilities
  288. #
  289.  
  290. .SUFFIXES:    $(EXE) .out .$A .ln .$O .c .cc .C .p .f .F .r .y .l .s .S\
  291.         .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo\
  292.         .w .ch .web .sh .elc .el
  293.  
  294. .c.$(O):
  295.         $(CC) -c $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) $<
  296.  
  297. #
  298. # If you are using a Fortran compiler (not f2c) then uncomment the
  299. # second rule, and comment out the 1st
  300. #
  301.  
  302. lp.c:        lp.f
  303.         if test -n "$(F2C)" ;\
  304.         then  $(F2C) -R lp.f ;\
  305.         else echo 'copying distribution files' ;\
  306.               cp lp.c_dist lp.c ;\
  307.         fi
  308.  
  309. bl.c:        bl.f
  310.         if test -n "$(F2C)" ;\
  311.         then  $(F2C) -R bl.f ;\
  312.         else echo 'copying distribution files' ;\
  313.               cp bl.c_dist bl.c ;\
  314.         fi
  315.  
  316. ode.c:        ode.f
  317.         if test -n "$(F2C)" ;\
  318.         then  $(F2C) ode.f ;\
  319.         else echo 'copying distribution files' ;\
  320.               cp ode.c_dist ode.c ;\
  321.         fi
  322.  
  323. #
  324. # F77 = f77
  325. #.f.$(O):
  326. #        $(F77) -c $(FFLAGS) $<
  327. #
  328.  
  329. #
  330. # Special actions for the Fortran Interface files
  331. #
  332. # -DUSE_F2C    to use the f2c C => Fortran convention
  333. # -DUSE_UPPER    to use uppercase convention
  334. # -DUSE_LOWER    to use lowercase convention
  335. # -DUSE_BACK    to use trailing underscore convention
  336. # -DUSE_FRONT    to use leading underscore convention
  337.  
  338. FCONV = -DUSE_F2C
  339.  
  340. fi_1.$(O):
  341.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  342.         fi_1.c
  343.  
  344. fi_2.$(O):
  345.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  346.         fi_2.c
  347.  
  348. matop1.$(O):
  349.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  350.         matop1.c
  351.  
  352. math_3.$(O):
  353.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  354.         math_3.c
  355.  
  356. random.$(O):
  357.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  358.         random.c
  359.  
  360. odei.$(O):
  361.         $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
  362.         odei.c
  363.  
  364. #
  365. # Automatically generated dependencies, do not edit. To regenerate
  366. # type `make depend' and then edit this file to include the new list
  367. # of dependencies.
  368. #
  369.  
  370. main.$(O) : util.h mem.h version.h rlab.h complex.h btree.h scalar.h getopt.h listnode.h matrix.h code.h list.h symbol.h config.h
  371. init.$(O) : util.h r_plot.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
  372. code.$(O) : util.h mem.h y.tab.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h r_string.h list.h function.h symbol.h config.h bltin.h
  373. bltin1.$(O) : matop1.h util.h mathl.h mem.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
  374. bltin2.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
  375. symbol.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h matrix.h code.h list.h r_string.h function.h symbol.h config.h
  376. list.$(O) : mem.h rlab.h listnode.h list.h config.h
  377. listnode.$(O) : mem.h rlab.h listnode.h config.h
  378. op.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  379. opapp.$(O) : util.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  380. opmat.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  381. scalar.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
  382. scop1.$(O) : mathl.h rlab.h btree.h complex.h scalar.h listnode.h code.h list.h symbol.h config.h bltin.h
  383. matrix.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
  384. matop1.$(O) : matop1.h util.h mathl.h mem.h matop2.h bl.h rlab.h complex.h btree.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h config.h bltin.h
  385. matop2.$(O) : matop1.h mem.h mathl.h rlab.h complex.h btree.h scalar.h listnode.h matrix.h code.h r_string.h list.h symbol.h fi_1.h fi_2.h config.h bltin.h
  386. complex.$(O) : mathl.h rlab.h complex.h btree.h listnode.h code.h list.h symbol.h config.h bltin.h
  387. function.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h function.h symbol.h config.h
  388. r_string.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h r_string.h list.h symbol.h config.h
  389. trig.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  390. math_1.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h fi_1.h config.h bltin.h
  391. math_2.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h fi_1.h config.h bltin.h
  392. math_3.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h fi.h symbol.h fi_1.h fftp.h config.h fi_2.h bltin.h
  393. mathl.$(O) : mathl.h rlab.h listnode.h config.h
  394. fi_1.$(O) : util.h mem.h mathl.h matop2.h rlab.h bl.h btree.h complex.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h lp.h config.h
  395. fi_2.$(O) : matop1.h util.h mem.h matop2.h rlab.h bl.h btree.h complex.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h lp.h config.h
  396. rel.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  397. mem.$(O) : mem.h rlab.h listnode.h config.h
  398. util.$(O) : mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h
  399. btree.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
  400. diss.$(O) : rlab.h btree.h listnode.h code.h list.h symbol.h config.h
  401. print.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h scan.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  402. random.$(O) : matop1.h util.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h random.h fi.h symbol.h config.h bltin.h
  403. rfile.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h
  404. getline.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h scan.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  405. mm.$(O) : rlab.h complex.h listnode.h config.h
  406. misc.$(O) : rlab.h listnode.h config.h
  407. r_plot.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
  408. bio.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
  409. odei.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h fi.h odei.h symbol.h lp.h config.h bltin.h
  410. getopt.$(O) : getopt.h config.h
  411. getopt1.$(O) : getopt.h config.h
  412. alloca.$(O) : config.h
  413.